package com.example.demo.exception;

import lombok.Data;

/**
 * TODO
 * 自定义异常
 * @author wxz
 * @date 2023/9/9 17:34
 */
@Data
public class ServiceException extends RuntimeException {

    private  String code;

    private  String msg;

    public ServiceException(String code,String msg) {
        this.code =code;
        this.msg =msg;
    }
}